﻿/**
*Drawable class
*auth:lww
*version:1.0
*date:2014-10-11
*/
function Drawable(bgColor,bgImage) {
    this.version = "1.0.0";
    this.name = "Drawable";
    this.mBackgroundColor = bgColor;
    this.mBackgroundImageSrc = bgImage;
    this.mRepeat = "repeat";
    this.mBound = null;
}

Drawable.prototype.getBackgroundColor = function () {
    if (this.mBackgroundColor == null)
        return null;
    return this.mBackgroundColor;
};

Drawable.prototype.getBackgroundImageSrc = function () {
    if (this.mBackgroundImageSrc == null)
        return null;
    return "url(" + this.mBackgroundImageSrc + ")";
};

Drawable.prototype.getRepeat = function () {
    return this.mRepeat;
};

Drawable.prototype.getBound = function () {
    //eg:thick solid #0000FF
    return this.mBound;
};

markscript("Drawable");
//end Drawable.js